home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
util
/
gnu
/
textutils_1_3.LHA
/
textutils-1.3
/
cat
/
cut.1
< prev
next >
Wrap
Text File
|
1992-09-22
|
3KB
|
133 lines
CUT(1L) MISC. REFERENCE MANUAL PAGES CUT(1L)
NAME
cut - remove sections from each line of files
SYNOPSIS
cut {-b byte-list, --bytes=byte-list} [-n] [file...]
cut {-c character-list, --characters=character-list}
[file...]
cut {-f field-list, --fields=field-list} [-d delim] [-s]
[--delimiter=delim] [--only-delimited] [file...]
DESCRIPTION
This manual page documents the GNU version of cut. cut
prints sections of each line of each input file, or the
standard input if no files are given. A file name of `-'
means standard input. Which sections are printed is
selected by the options.
OPTIONS
The _b_y_t_e-_l_i_s_t, _c_h_a_r_a_c_t_e_r-_l_i_s_t, and _f_i_e_l_d-_l_i_s_t are one or
more numbers or ranges (two numbers separated by a dash)
separated by commas. The first byte, character, and field
are numbered 1. Incomplete ranges may be given: `-m' means
`1-m'; `n-' means `n' through end of line or last field.
-_b, --_b_y_t_e_s _b_y_t_e-_l_i_s_t
Print only the bytes in positions listed in _b_y_t_e-_l_i_s_t.
Tabs and backspaces are treated like any other charac-
ter; they take up 1 byte.
-_c, --_c_h_a_r_a_c_t_e_r_s _c_h_a_r_a_c_t_e_r-_l_i_s_t
Print only characters in positions listed in
_c_h_a_r_a_c_t_e_r-_l_i_s_t. The same as -b for now, but interna-
tionalization will change that. Tabs and backspaces
are treated like any other character; they take up 1
character.
-_f, --_f_i_e_l_d_s _f_i_e_l_d-_l_i_s_t
Print only the fields listed in _f_i_e_l_d-_l_i_s_t. Fields are
separated by a TAB by default.
-_d, --_d_e_l_i_m_i_t_e_r _d_e_l_i_m
For -f, fields are separated by the first character in
_d_e_l_i_m instead of by TAB.
-_n Do not split multibyte characters (no-op for now).
-_s, --_o_n_l_y-_d_e_l_i_m_i_t_e_d
For -f, do not print lines that do not contain the
field separator character.
Sun Release 4.1 Last change: 1
CUT(1L) MISC. REFERENCE MANUAL PAGES CUT(1L)
The long-named options can be introduced with `+' as well as
`--', for compatibility with previous releases. Eventually
support for `+' will be removed, because it is incompatible
with the POSIX.2 standard.
Sun Release 4.1 Last change: 2